package com.fruitsales.recommend.pojo;

import java.util.Arrays;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class recommend {
    private Integer rid;

    private String title;

    private String autor;

    private String p1;
    private String p3;
    private String p2;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date date;
    
    
    private byte[] pic1;
    private byte[] pic2;
    private byte[] pic3;
    public byte[] getPic1() {
		return pic1;
	}



	public void setPic1(byte[] pic1) {
		this.pic1 = pic1;
	}



	public byte[] getPic2() {
		return pic2;
	}



	public void setPic2(byte[] pic2) {
		this.pic2 = pic2;
	}



	public byte[] getPic3() {
		return pic3;
	}



	public void setPic3(byte[] pic3) {
		this.pic3 = pic3;
	}



	public recommend() {
		super();
	}

	

	


	@Override
	public String toString() {
		return "recommend [rid=" + rid + ", title=" + title + ", autor=" + autor + ", p1=" + p1 + ", p3=" + p3 + ", p2="
				+ p2 + ", date=" + date + ", pic1=" + Arrays.toString(pic1) + ", pic2=" + Arrays.toString(pic2)
				+ ", pic3=" + Arrays.toString(pic3) + "]";
	}



	public recommend(Integer rid, String title, String autor, String p1, String p3, String p2, Date date, byte[] pic1,
			byte[] pic2, byte[] pic3) {
		super();
		this.rid = rid;
		this.title = title;
		this.autor = autor;
		this.p1 = p1;
		this.p3 = p3;
		this.p2 = p2;
		this.date = date;
		this.pic1 = pic1;
		this.pic2 = pic2;
		this.pic3 = pic3;
	}



	public recommend(String title, String autor, String p1, String p3, String p2, Date date, byte[] pic1, byte[] pic2,
			byte[] pic3) {
		super();
		this.title = title;
		this.autor = autor;
		this.p1 = p1;
		this.p3 = p3;
		this.p2 = p2;
		this.date = date;
		this.pic1 = pic1;
		this.pic2 = pic2;
		this.pic3 = pic3;
	}



	public String getP1() {
		return p1;
	}



	public void setP1(String p1) {
		this.p1 = p1;
	}



	public String getP3() {
		return p3;
	}



	public void setP3(String p3) {
		this.p3 = p3;
	}



	public String getP2() {
		return p2;
	}



	public void setP2(String p2) {
		this.p2 = p2;
	}



	public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getAutor() {
        return autor;
    }

    public void setAutor(String autor) {
        this.autor = autor == null ? null : autor.trim();
    }

    

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

	
}